package cl.kano.springApp.ejb;

import javax.ejb.CreateException;

import org.springframework.ejb.support.AbstractStatelessSessionBean;

import cl.kano.spring.bpro.SpringAppBusiness;
import cl.kano.spring.dao.JmsUserDVO;

public class SpringAppBean extends AbstractStatelessSessionBean  implements SpringAppBusiness {

	private static final long serialVersionUID=1;
	
	private SpringAppBusiness springAppBusiness;
	
	protected void onEjbCreate()throws CreateException{
		this.springAppBusiness = (SpringAppBusiness)getBeanFactory().getBean("springAppBusiness");
		System.out.println("***********************on EJB Create se ejecuto la carga");
	}

	public JmsUserDVO getUser(int id) throws Exception {
		return springAppBusiness.getUser(id);
	}
	
	
}
